package com.lin.videospringboot;

import com.lin.videospringboot.controller.Connector;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;


@SpringBootApplication
public class LiveSpringbootApplication {

    public static void main(String[] args) {
        SpringApplication.run(LiveSpringbootApplication.class, args);

        new Thread(()->{
            System.out.println("连接线程运行");
            while (true) {
                try {
                    Connector.connect();
                    Thread.sleep(1000);
                }catch (Exception e) {
                    e.printStackTrace();
                }
            }

        }).start();

    }

}
